#include<stdio.h>
#include<stdlib.h>


struct ListNode {
    int val;
    struct ListNode *next;
};

struct ListNode* middleNode(struct ListNode* head){
	struct ListNode *fast=head,*slow=head;
	while(fast)
	{
		int i=0;
		for(;i<2;i++)
		{
			fast=fast->next;
		}
		if(i==2)
		{
			slow=slow->next;
		}
	}
	
	return slow;
}


int main()
{
	return 0;
}
